<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of mManageUser
 *
 * @author SG10015
 */


$q = isset($_POST['q']) ? strval($_POST['q']) : '';
$sql = "SELECT VNDR_CODE,VNDR_NAME FROM trv_mvendor WHERE VNDR_ACTIVE='1' AND VNDR_NAME like '%".$q."%'";
$rs = @mysql_query($sql);
$rows = array();
while($row = @mysql_fetch_assoc($rs)){
	$rows[] = $row;
}
echo json_encode($rows);
?>
